<div id="nav">

    <div class="container">

        <a href="javascript:;" class="btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <i class="icon-reorder"></i>
        </a>

        <div class="nav-collapse">

            <ul class="nav">
                <li class="nav-icon active">
                    <a href="<?php echo $this->Html->url(array('controller' => 'Dashboard', 'action' => 'index')); ?>">
                        <i class="icon-home"></i>
                        <span>Home</span>
                    </a>
                </li>

                <?php
                foreach($group_modules as $mod){
                    $url = $mod['url'];
                    $url_arr = explode('/',$url);
                    $controller = $url_arr[0];
                    $action = $url_arr[1];
                    $name = $mod['name'];
                    $icon = $mod['icon'];
                    ?>
                    <li>
                        <!--<a href="<?php /*echo $this->Html->url(array('controller' => 'Broadcasters', 'action' => 'index')); */?>">
                            <i class="icon-th"></i>
                            Broadcast
                        </a>-->

                        <a href="<?php echo $this->Html->url(array('controller' => $controller, 'action' => $action)); ?>">
                            <i class="<?php echo $icon ;?>"></i>
                            <?php echo $name ;?>
                        </a>
                    </li>
                <?php
                }
                ?>
            </ul>


           <!-- <ul class="nav pull-right">

                <li class="">
                    <form class="navbar-search pull-left">
                        <input type="text" class="search-query" placeholder="Search">
                        <button class="search-btn"><i class="icon-search"></i></button>
                    </form>
                </li>

            </ul>-->

        </div> <!-- /.nav-collapse -->

    </div> <!-- /.container -->

</div> <!-- /#nav -->